#include <CommandInsertVehicle.h>
Inheritance diagram for CommandInsertVehicle:

Public Member Functions | |
| CommandInsertVehicle (osg::Vec3 pos, OSGWindows *osgwind, string pathname, float scale) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| Vehicle * | vehicle |
| vector< TraffEduObject * > | insertedObjs_ |
Definition at line 8 of file CommandInsertVehicle.h.
|
||||||||||||||||||||
|
A constructor. Initializes osgwind_ and creates a new vehicle object by using the parameter of pathname.
Definition at line 2 of file CommandInsertVehicle.cpp. References OSGWindows::addObject(), TraffEduObject::getObjectGroup(), insertedObjs_, osgwind, osgwind_, TraffEduObject::setPosition(), Vehicle::setPositionAll(), and vehicle. |
|
|
do the insertion of vehicle object operation.
Implements Command. Definition at line 15 of file CommandInsertVehicle.cpp. References OSGWindows::doAddGeode(), osgwind_, and vehicle. |
|
|
undo the insertion of vehicle object operation.
Implements Command. Definition at line 23 of file CommandInsertVehicle.cpp. References OSGWindows::doDeleteGeode(), osgwind_, and vehicle. |
|
|
a private vector of TraffEduObjects. It holds the inserted vehicle objects. Definition at line 28 of file CommandInsertVehicle.h. Referenced by CommandInsertVehicle(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 16 of file CommandInsertVehicle.h. Referenced by CommandInsertVehicle(), execute(), and unexecute(). |
|
|
a private variable. It is used to hold the created vehicle object. Definition at line 22 of file CommandInsertVehicle.h. Referenced by CommandInsertVehicle(), execute(), and unexecute(). |
1.4.6-NO